package fan.project1_SpeedTalkSystem.Model;

import lombok.Data;

@Data
public class ProUserInfo {
    private int id;
    private String userName;
    private String githubUrl;

    public static ProUserInfo ToProUserInfo(UserInfo userInfo){
        ProUserInfo proUserInfo = new ProUserInfo();
        proUserInfo.setId(userInfo.getId());
        proUserInfo.setUserName(userInfo.getUserName());
        proUserInfo.setGithubUrl(userInfo.getGithubUrl());
        return proUserInfo;
    }
}
